﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class XunZhangController : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
        if (this.transform.GetComponent<RectTransform>().anchoredPosition.y <= -650 )
        {
            Destroy(this.gameObject);
        }
	}

    void OnTriggerEnter2D(Collider2D other)
    {
        Debug.LogError("---------------- EnterGame -----------------");
        Destroy(this.gameObject);
    }
}
